package com.activemq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

//@Component
public class TopicConsumer1 {
	private static final Logger LOGGER = LoggerFactory.getLogger(TopicConsumer1.class);  
	
	@JmsListener(destination = "sample.topic",containerFactory="jmsListenerContainerTopic")
    public void receivedTopic(Object msg) {
        LOGGER.info("Has received from LOG, 订阅1消息: " + msg);  
    }
}
